<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_course_student_score".
 *
 * @property string $id
 * @property string $course_id 课程id
 * @property string $student_id 学生id
 * @property int $learning_progress_status 学习进度状态
 * @property int $task_status 任务状态
 * @property int $test_status 测试状态
 * @property int $sign_status 签到状态
 * @property int $examination_status 考试状态
 * @property string $forum_count_num 互动论坛关注数量
 * @property string $visited_count_num 访问数量
 * @property string $learning_progress_score 学习进度分数当前得分
 * @property string $task_score 任务分数当前得分
 * @property string $test_score 测试分数当前得分
 * @property string $forum_score 互动论坛分数当前得分
 * @property string $sign_score 签到分数当前得分
 * @property string $examination_score 考试分数当前得分
 * @property string $other_score 其它分数当前得分
 * @property string $learning_progress_end_score 学习进度最终分数
 * @property string $test_end_score 测试最终分数
 * @property string $forum_end_score 互动论坛最终分数
 * @property string $visited_end_score 访问最终得分
 * @property string $task_end_score 任务最终分数
 * @property string $examination_end_score 考试最终分数
 * @property string $sign_end_score 签到最终分数
 * @property string $other_end_score 其它最终分数
 * @property string $all_score 加权后总得分
 * @property string $create_by 创建者
 * @property string $create_time
 * @property string $update_by
 * @property string $update_time
 * @property int $del_flag
 * @property string $project_id
 * @property string $old_id
 */
class TCourseStudentScore extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_course_student_score';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id', 'create_time', 'update_time', 'del_flag'], 'required'],
            [['forum_count_num', 'visited_count_num', 'del_flag'], 'integer'],
            [['learning_progress_score', 'task_score', 'test_score', 'forum_score', 'sign_score', 'examination_score', 'other_score', 'learning_progress_end_score', 'test_end_score', 'forum_end_score', 'visited_end_score', 'task_end_score', 'examination_end_score', 'sign_end_score', 'other_end_score', 'all_score'], 'number'],
            [['create_time', 'update_time'], 'safe'],
            [['id', 'course_id', 'student_id', 'create_by', 'update_by', 'project_id'], 'string', 'max' => 36],
            [['learning_progress_status', 'task_status', 'test_status', 'sign_status', 'examination_status'], 'string', 'max' => 1],
            [['old_id'], 'string', 'max' => 255],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'course_id' => 'Course ID',
            'student_id' => 'Student ID',
            'learning_progress_status' => 'Learning Progress Status',
            'task_status' => 'Task Status',
            'test_status' => 'Test Status',
            'sign_status' => 'Sign Status',
            'examination_status' => 'Examination Status',
            'forum_count_num' => 'Forum Count Num',
            'visited_count_num' => 'Visited Count Num',
            'learning_progress_score' => 'Learning Progress Score',
            'task_score' => 'Task Score',
            'test_score' => 'Test Score',
            'forum_score' => 'Forum Score',
            'sign_score' => 'Sign Score',
            'examination_score' => 'Examination Score',
            'other_score' => 'Other Score',
            'learning_progress_end_score' => 'Learning Progress End Score',
            'test_end_score' => 'Test End Score',
            'forum_end_score' => 'Forum End Score',
            'visited_end_score' => 'Visited End Score',
            'task_end_score' => 'Task End Score',
            'examination_end_score' => 'Examination End Score',
            'sign_end_score' => 'Sign End Score',
            'other_end_score' => 'Other End Score',
            'all_score' => 'All Score',
            'create_by' => 'Create By',
            'create_time' => 'Create Time',
            'update_by' => 'Update By',
            'update_time' => 'Update Time',
            'del_flag' => 'Del Flag',
            'project_id' => 'Project ID',
            'old_id' => 'Old ID',
        ];
    }
}
